Fixed workspace index problem.