fixes bug where exception raise if parent is not available