fix minor bugs.