Looking inside the log, the "broken" called function doesn't originate from Krastorio 2 code, so I can't help the resolution of this bug. I'm sorry, if the author of mod will need help, I'm glad to give to him the necessary information about Krastorio 2 code.