Fixed bug where options was in incorrect scope.