bug fix: global variable pre_empty initialization