fix compilation erros