Fix wrong assert