Fix bug for stack level error when diff between dir_rate and expected_dir is big