fixed setting debug if there is none