Fix undefined bug when options is not set