Fix can't insert sophancong when data is empty.