api: fix figure borders