bug fix for the broken isDWC() function