fixed errors in ml