fix the production mode error