fix attribute error in WinXP