Correct the inappropriate shift in verb voice or mood by rewriting the sentence below.

"When we searched the school for damage, a broken window was discovered."