fix a bug. $.contains() give the wrong arguments. 

fix a bug. $.contains() give the wrong arguments. 
this bug case, connect parent error, and can't sort well in one container.