fixed bug with empty options