added another check for an ios bug