applied workaround for regression in jquery