Fixed issue #47

Fixed issue #47 by replicating the configuration options into an array before changing it.