Fixed issue with incorrect overlay positioning on iOS 8