Registers initialization bug fixed