Fixed some compiler erros