Fix for task deletion
Fix for task deletion