Fix crash when using edit appearance.