Fixed debug bug