fixes a regression introduced in recent versions