fix a bug that program stop when sample info is empty