fix windows path issue in generating id