corrected naming bug in posts controller