fixed JString_substring and Frame_merge