prevent vectors disappearing on resize