Fixes strict warning pass by reference