segmentation fault using the refint overlay