fixed subclass lookup in the right way, checked on Scala compiler