fixed an issue for getParent where the parent (main component) wasn't registered