fix bug with empty options