Fix bug of undefined store variable in production mode