Fixes bucket task removal bug