Fix bug in getting single post