Fixed parsing of nth-child(n) and nth-child(-n)