Fix classList breakage

This fixes the breakage introduced in 76312db759287f37e1a8d5184f669430fc4c5483