fixed wrong AssertionError