fix recursion errors. #109