Correctly look up static variables