Fixed bug with row qty that wasn't correctly updated