Fix bugs in resolve_folder.

1 file changed