Fixed the init of X state registers.