fix csfr problem in production mode