Some minor bugs have fixed.