fix case where options is not defined