fixing an issue with updating users