fixed bool conversion not allowing debug to be false