fixed an issue where parent may not be defined
Version bump to 0.2.2
Regenerate gemspec for version 0.2.2