Bug Fix: Only set the parent container after setting the path