fixed fetching of posts