fix endless inches crash in ios