fixed edit problem