fixed bug with next sibling