Fix indexing issue on project selected tasks