fix posts controller