fixed build failure under 8.4pl5

behaviour of apply: seems to have changed. Should now work on pl2 up.