fixed a bug in cl3 and cl4.js