fixing iOS and non-webkit browsers