check for self.className.length instead #169