fixing update bug in posts controller