#882 Modal should overwrite options.reference.