Update ubjr.c

Fix limit for dimsize to not be 8