fixed double painting from history event