Possible fix of vector bug when file doesn't open