Fixed an insert_spot bug in relation to load_files