partially fix #18943, end beam of too long in cross staff beaming