fix MAS using suffix sort lib