Fix compilation issue in production mode