Fixed setting categories in posts.