Fixed serialization problem.

See https://groups.google.com/d/msgid/jenkinsci-users/e0787834-9070-4ac8-8f6c-187bafd9f343%40googlegroups.com