Fix second by ref warning