Fix error message 'Only variables should be passed by reference'

This error occurs when you try to download a file