fixed minor problems