I seemed to have fixed the bug by changing the cost formula

But I’m nervous about that.