Fix issue when using production API, center error message