Tasks index bug fixing