fix error for server production.