Fix a ios log in bug.