Fix incorrect assertions.