Fixed get state value in Emerge template.