fixed freezing when setting path length to 0.
made path size changeable without clearing all paths.