delete error tasks bug fix