fixed typo in posts controller