fix syntax error in class def