bug fix on InitVal global access