fix regression in posts retrieval