Fix IO problems for RecursiveLDA