Fixed a bug caused by JSON conversion to Perl data structures.