static variable fix