Fixed issue if app has so many permissions