Fixed bug with library where options object was getting modified