fixed bug in layout links