Fixed bug where tag selector class was not correctly applied