Fix crash when setting appearance with id object