Fix the previous AssertionError

Now, finally this should work