typing bug fixed