Fixing issue on FF using a clone of the options object