Fix local stake weight calculation