fix stringify problem, fix reset problem