Took out the whole vector thing and everything seems to be working fine