Fixed bug with virtual dom in jquery patch