fix for editing of department