fixed a stack overflow error....