fixing paths bug