Fixed layout loop in view.