Fix accounts API with dept change