fix class snippet