Fixed bug with some json output