fix initial local varialbs bug