Fixed segfault in diapo