problem in creating glList dynamically.

I have two set of lists. One is static and another one will change dynamically. In static i creating two list using glGenList function and set the list base as zero by calling glListBase(0).
In dynamic size list i am calculating the list size based on user selection. for example during initial state it will be of size 10. During runtime user may change the list size. In that time i need to delete the lists and and create the list with new size using glGenLists(size) and assign the base using glListBase(0).
In this situation, my static lists are getting affected during the recreation of the dynamic lists with respect to the user selection.

If you found any mistake in my procedure let me know how to solve that issue.

Thanks in advance.