some clean up in file_open_activate