Fix TypeError.