fix an issue may cause  while use cjs module mode.