fix nil check for appearance