patch to 3.0.40