fix creation of options