fixed the post controller