fixes base 8 bug