Fixing vector bugs.