only clone options.data if it is defined