fix bug with user update