Stack Depth Fix (Failed Test in Ant Build)

Fixed stack depth problem, which causes failed test in ant build but not sbt build.