ios bug fix method