Fixed error on * register not writable on some case.