Fixes bug in posts#index.