Fixed an important bug when initializing the chip