testing hack for barGroupWidth
no hack needed, fixed barGroupWidth
converted errors to type errors