fix bugs against enabling travis ci