fix iOS bug