fix a bug not work str_slice