Fixed adding/removed class for html root element