Fixed erroneous recursive call