fix compilation warnings
fix compilation error