[DF-559] fix crash for layer widget.