db: fix a bug in splitting return states