Fixed a bug with row vectors