Bug segmentation fault resolved