Fix another undefined bug when options is not set