Minor errors solved