fix issue in yarn mode