Template recursive function corrected