Fixed bug in series JSON generation.