Repaired minor problems