fix the issue which lead to InflateException