fix optima reading problem.