fixing segfault on travis