Fix build error on some devices