Fix initial position problem. Compatibility with iOS8.
Fix initial position bug