fix minor problems