fix DOM: use empty/no class instead of undefined