fixed small error in posts_controller