Fixing IE7 attribute bug