Bugfix

Fixes crash when files/directories with wrong name are specified.