bug fixing on rq2.js