Fixing a stupid call to a function, when I wanted to pass the reference