Fix for segfault during GC on reads