fixed edit collection bug