fixed an assertion that was way too coarse-grained