fixed regression introduced by previous commit