Fixed a row function