Fixes mispelled assert call
Fixes bad variable name