fix some assert bugs

Perhaps the developer has confused the comparison operator with the assignment operator