fix bug with updating users