typo fix and forgotten store register