fixed a bug if scaner is absolute path