fix syntax error for production