fixing typing bug