fix dom reference detection for DYN (lazy loader)