fix exception: local storage exceed limit
use local file to replace local storage