Fix bugs in setOption() method, merge options and not override them