healer: prevent nil pointer dereferencing