Fixed crash.
Removed old apiRequest and unused permissions.