fix windowshade bug