prima: apply fixes after upgrade