removed error in posts controller