Fixed bug with deleting task boxes