fixed typing bug