bugfix, path string could get lost, before accessing it, fixes #11