fixed edit submission bug