fix bug when options were nil