Fixed iOS7 bug