Fix some assertions.