fix register  layout