fixed ios simulator error