fixing newly introduced bug