Resorting to ugly hack in order to avoid segfault in Travis.