Issue #2416: remove element error