For ios terminal bug