fix the 'unable to trace the current directory' bug