Fixed Recursion -didn`t work properly.