Fix error on segment sorting
Update package version