Fixed case when options parameter is undefined