Fixed uninitialised variable access