Added code to make sure @path is set before #new is rendered.