Fixed the posts controller