Corrected bug in recursive call.