Patch 1

Fixed issue with parent not closed in last commit.