Fixed bug with updating post and category selection