Error thrown
Attempt to modify property "options" on null