Fixes a non-compileable assertion to the extent that it compiles

Not sure if you really need a PR for this, or if this is the fix you want but since I had it handy figured might as well submit it.