bugfix for refresh_user