Fixed some vector-bugs