Fix wrong assertion