fixing errors on travis test