Fix for vector math