remove of pony debug and fix the segmentation