src/HP/WL_Algorithm + else if fix