fix($resolve): Resolves only inherit from immediate parent

fixes #702