Fix: member variable goes static when previous function is static