Fixes bug when building posts.