Dragging two MKAnnotation alternatively
===

I added two MKAnnotations(pins) to my mapview.I am dragging those two MKAnnotations using the following code in  -(MKAnnotationView *)mapView:(MKMapView *)mV viewForAnnotation:
(id <MKAnnotation>)annotation method

    if(([annotation isKindOfClass:[Flag class]])) 
    {
        MKPinAnnotationView *pinView = nil; 
        if(annotation != mapView.userLocation) 
	    {
	      static NSString *defaultPinID = @"PinId1";
	      pinView = (MKPinAnnotationView *)[mapView dequeueReusableAnnotationViewWithIdentifier:defaultPinID];
		  if ( pinView == nil ) pinView = [[[MKPinAnnotationView alloc]
                                              initWithAnnotation:annotation reuseIdentifier:@"pin1"] autorelease];
			
            pinView.draggable = YES;
            [pinView setSelected:YES animated:YES];
			
		} 
		else 
		{
			[mapView.userLocation setTitle:@"I am here"];
		}
        return pinView;
	}
    else if(([annotation isKindOfClass:[touch_pin1 class]]))  
	{
        MKPinAnnotationView *pinView = nil; 
        
        if(annotation != mapView.userLocation) 
		{
			static NSString *defaultPinID = @"PinId1";
			pinView = (MKPinAnnotationView *)[mapView dequeueReusableAnnotationViewWithIdentifier:defaultPinID];
			if ( pinView == nil ) pinView = [[[MKPinAnnotationView alloc]
                                              initWithAnnotation:annotation reuseIdentifier:@"pin2"] autorelease];
			
             pinView.draggable = YES;
            [pinView setSelected:YES animated:YES];
	
		} 
		else 
		{
			[mapView.userLocation setTitle:@"I am here"];
		}
        return pinView;
	}

But my problem is when I am tapping my first pin it is moving perfectly.While touching the second pin first time,it is selected and after touching it second time only it moves.The same thing happens to first pin also.What is problem?Please help me to solve this.Thanks in advance.