fixed incorrect Assert