Fixed setTimeout bug for nodesinserted