Remove useless tasks