Fixed some minor erros