Fixed bug where sibling selector could return indexoutofbounds exception