fix regression introduced in latest commit