fix options with empty values. fixes #1497