[File Management] Prevent infinite loop