vector bugfixes