Options were not being passed when setting attributes