fix(api): remove duplicate splicing