fix order of assert