Added fix for older webkit browsers