fix bug for compile