fix iOS simulator error