fix class name resolution with repositories