fixed rescreen bug