fixed ios sandbox issues