Fix TypeError on Line 118