fixed error after optimize process