Fixed bug when merging options.