bugs in post controller