Fix idle bug and js number