Fixing build warning caused by nil layout