Bugfix of dataToOptions