Fixed autoheal in GUI and CLI
Buggy testcase but functioning code