fix bug for production server