Fix parse errors when searching teachers and rooms