fix: bug in segment type check has been fixed.