Quick fix of segmentation