invalid group span fix