fix bug in case using real path in windows