Adapted nextRule(), remove vectors