Lightning.cpp bug fix