fixed server errors in production