Fix assert to check the right thing
docs