Fixing bug in plugin + pseudo class usage