Fixed some major bugs concerning the changePath functionality.