Protect against range exception
Fix placeholder position on iOS 8