Fix spark splitter

@gaurave

Fixes #2059