fix the crash on MTK devices