Fixed a serialization problem with stored continuations