fix up no-cd code crash when no-cd is disabled