fix switch to production mode