fixing overwritten json value