Fix some bugs with type question category parsing