bug fix for user update