fixed main debug