Instead of making them transient, I removed the `val`s.  Since these two are not reference by any methods, the Scala compiler won't turn them into class member fields, and thus won't be serialized.