tested in windows. fix #52