Fixed some errors happening on travis