fix build warning - layout:nil