fix list_posts helper bug
Merge pull request #561 from chenall/fix_list_posts_helper

fix list_posts helper bug