fix warnings
fix build error