Fix unclaim and claim command when using console.