bug fix uid casting for edit user