check for invalid style range lengths