fixed bugs in  css parsing rules