Typo and tsc error