fixed a bug introduced in [3973]