Fix bugs in professors views