fix machine dependence