Fix bug in heur_init (var declared with name of a method)