Fixing a bug on Ajax forms (double call on form trigger)