fix styling which depended on nth-child