Fix the get row length function which had the wrong parameter name