fixed "registers may not be the same" compilation error