Fix repaint after deserialization

Fix repaint after deserialization