bug fix and post controller