Another bug fix for single-instance check.