fix bugs for js
fix v