Fixed typing issues.