Fix set_post in posts controller