Fix a type

Arguably a better fix for #716.