Administrators canceled classes Wednesday at Bethel Park High School after the sprinkler system malfunctioned, sending water into several classrooms and the library.

The district announced Tuesday night that the school would be closed and expected to reopen on Thursday.

The malfunction occurred on the fourth floor and affected five classrooms and the library, Pittsburgh Post-Gazette news partner KDKA-TV reported. The sprinkler system has been repaired and the district is drying out the rooms.

All other schools in the district are open.