Fixing segment problem by the build