fix broken asserts
The conditions in these asserts contained the variable name as a string, so there was no actual checking.
Edited by Erik Schultheis
The conditions in these asserts contained the variable name as a string, so there was no actual checking.