fixed main task issue