fix Assertion type issue when building on travis