bugfix : return new path on shortest intead of null