Fix cannot restrict for Android