Fixed a bug in submit sample after saving POC with error