Fix opacity undo bug