fix category pre-selection when writing a new post for a category