Fixed dependency fields to work on edit user page in the admin as well.