fixed some regex range exceptions