Fix wrong assertion when linear lists where used.