fix for json generation when update_every is not 1 sec