Fixed bug with layout view rendering