Fix some bad asserts