this condition was weird and could lead to segfaults