Fixed typing bug