Fix segfault from the corrected deltaeta deltaphi calculation