fix remote_user cannot be reassign issue