fix for classes with packages