repair error typing