A note on character sums