update and fix build warning