fix bug when calling make