Fixing const reference