set flag incorrectly when debugging