fixed incorrect assertion