refs #18: fix wrong method to detect which localvar is loaded