Fixed debug file output