Minor vector function fix