Correctly retrieve classes from className