Fixed debug problem