Fix compile-time type-checking error on Travis.