FIX a bug the prevented debug logging from working