Fixed bug with ios save path