Fix category not being selected when updating posts