fix duplicate layout issue