fixing some minor problems