Add hack to clear pending tasks