Fixed dom cleanup statement order, build with fixes