Move a variable into the assert where it's used - fixes a -Asserts