Fixed a bug that occured with -setMaxDepth