Fix protocol variable reference from GLOBALS

Bug introduced in #8.