avoid AssertionError