fix global file missing bug in dev mode