fixing some bugs on the department pages related with the changes on the context info