Bug fix conditions were reversed