fix class and id pattern