fix vector loading
fix for loop