Fix error with options structure that was not an array