Fixed render of the wrong layout