fix dependency lost in production mode