change bad type assertion