corrects regression introduced in 7ec1c53