Use correct variable for debug checking