fix for marking ending tasks