fix layout links bug