Fixed a minor bug related to attribute setting/getting for older safari browsers