fix #4533: wrong assert