small fix to singleObject.js