Fixing an asssert