fix two bugs in Single2.js