Removed default-path and changed new-window to set path to previous window's path.