solved bug crashing when posts.json file is not present