fixed set_layout