fix class def