Fix bad logic in user_patch.rb