fixed assert in distinct4.js