Improve load_vec and fit2grid for vectors