fix restoring IFS