fixed errors that validation pointed out.