Fixed bug in hr_layout