Fixed a bug in the task option and clean submodues