fix path bounds bug in windows