Fix: Bad calculation. Missing global.