Fix for #111 unclear error message when parsing incorrect range