Fix layout nil warning