Otherwise it fails to check for availability of packages for subclasses when there is already a function registered for a parent class.