fit a bug when working in other directories