Fixes #3183: fixed regression after #3175