fix class instanciate