fixing Minor errors