Fixed calling mergeRow on a non-object error