Post your code? It may be that there's something wrong with your recursive function.