fix the bug when there are no records in blog initially