fix syntax errors in ml