Fixes #899 (closed). Fixes a bug due std::move introduced in commit 9443c57c with MR !2184 (merged).
std::move