v1.19.6: fix part of the sample editor