fixed a bugs from travis