fixed an issue with folders