fix figure layout