Undefined when className property is not set