fix error when selecting faculty in profile page