fixed a defect in preview ode