fixes introduced bug from last commit