fix build crash