Jquery Sortable Update Event can called only one time?

Jquery Sortable Update Event can called only one time?

Hello. I'm trying to make category changes with Jquery & Php. I have no problem with it. My problem is, when the update event is called, it returning 2 results. 1 result for Dragged Parent, One result for Dropped Parent. I wanna call only dropped parent's id. Here is my script: 
  1. $("#gallery ul").sortable({
  2. connectWith: '.dropBox',
  3. scroll: true, 
  4. scrollSensitivity: 100,
  5. helper: 'clone',
  6. containment:'#gallery',
  7. accept:'#gallery > .photo',
  8. revert: true,
  9. update: function(event, ui){
  10. var params = 'category=' + $(this).attr('id') + '&id=' + ui.item.attr('id');
  11. $.ajax({
  12. type: 'POST',
  13. url: 'processData.php',
  14. data: params,
  15. error:function(){
  16.                  alert("Error!");
  17.                 },
  18.                 success:function(data){
  19.                  $("#serverResponse").html(data);
  20.                 }
  21.          });
  22. alert(params);
  23. }
  24. }).disableSelection();

Please help...