Fixed NullReferenceException in item focusing