fix storage error of setting register