fixed debug check that was printing out strange message