fix #19687 : moving bracket causes crash