Fixes task bug