FIX: add split will throw NPE

This bug is introduced by 4745dea in #228.

#228 is not merged on master yet, so this bug only exist on develop branch.