Fix TypeError
Merge branch 'r1411'