Bugfix: Avoid accessing temporary after its lifetime.