Fixed error when options were not set.