fixed issue with duplicate tasks being listed