Naming series for delivery note and sales invoice

I have created the naming series for delivery note and sales invoice but it is not working. suppose i have created the delivery note the naming series is 1 after that i created the sales invoice the naming series come as 2 but I want two different series for different doctypes.