fixed some bug in js