Upgrade to 1.40.0.7998 causes error

Thanks for this update. I tested this out and the problem seems to be resolved, no other issues so far.