* check category before use it.
  * fix objectID bug.