fixed bug where tasks weren't being deleted once complete