fix helper method in post controller