fix a wrong assert