Convert rvalue to an lvalue. (RIPD-494)

* The rvalue gets destructed as soon as rc is constructed.

Quick fix for the issue without any refactoring involved.