fix issues on iOS7