re-add a fix that got lost with a recent change