fix problem with spooler JSON serialization