Apply some fixes to posts and comments controllers