Fixed a bug with options