fixed a bug: attribute selectors of css selector did not work fine