Fix a bug where options were not passed correctly to the create_session function.