Fixed unlocked for staking bug