fix bug that keys were not remove in BaseTask since nothing passed in