Fix worker issue with serializing