fix for the issue #12 - Error when there are no posts