fixed problem with broken recursion
minorfix