fixed bug with stack of vectors