Fixed debug not showing correctly