minor bug fix for iOS safari