fix remove-class bug found by @latentflip #7