There were fears pupils were in danger