fix effect error on some devices