Fix bug #3897 Row Statistics and Space usage Bugs

Fix bug #3897 Row Statistics and Space usage Bugs