Fix an error with assertion.