fixed a regression in previous commit