am f98ed2e5: Fixed the problem where updating event colors would cause exceptions

* commit 'f98ed2e5c5e08cac159ce4cf22ab86a718f0bb0b':
  Fixed the problem where updating event colors would cause exceptions