fix bugs for v 1.0.1