fix debug check

think this is better..