Fixed bug in options setting