Fix #984 "Incorrect repeat layout in Liferay"