fix bug:can't used on xp platform