Fix PoS staking calculations