fix department search