bug 2414 fixed , passing dom id whenever possible