fixed ios restore bug