Fix grid footer number unaccurate

update footer number was not accurate
Merge pull request #519 from markerking/master

Fix grid footer number unaccurate