fixing index for new task