removed useless ;
fixed missing cast on max_degree variable