fix bugs on 1001