Naming Series Not Update Proper

Dear All I set this series “786-SI-0007-2021” in my sales invoice
But when I have to update the prefix with the value 3690 (my last invoice). it does not update my series properly. plz, guide.
Thanks