fix build crash issue