fix 'no such file or directory' error with debug