solve save register problems