Fix for destruction of moved object