Fixed somme recursive bugs