bugfix in posts_controller