fixed bug related expected row and actual output row mismatch