fix td split. Fixes #418