Fixed global variable

Signed-off-by: Damien Zammit <damien@zamaudio.com>