Fixed debug mode assertion