some fixes in vectors dimension functionality