Fix building error and typo issue
Refactor usage of RCTask, and fix some issues