fixed edit mode