fixes departments/edit