fixed crash issue under device