fix bug when there are no options