fix incorrect index range in emoji-helper