fix bug: save regapp into storage after register