fixed iOS compile error