Fixing bug introduced by json migration.