Fixed bug where I forgot to pass a viarlbe