Fixing error with vector division