Fix Travis run by adding constraints