Fixed bug in vector accessor.