fix recursive reset from json