fix debug logic that was left in by mistake