Fixes to vector fit and changed extremes to extents