fix regression in inlining of some apply() calls