fix an error in nice.js