Fix bad asserts