fix for def scope dom