data-options fix

Some options aren't correctly parsed in `data-options` attribute. I think this should fix the issue.