[bugfix] Make sure to use the correct path to the parent