fix postcontroller