Fixed two iOS specific bugs.