fixed wrong operation for option removal