Fixes in posts controller