fixed error that occurs when options is empty