fixed regression introduced by the previous commit