fix fragile asserts