db: fix a bug in split returns