poetry: fix bugs