fixed Travis build errors.