Fixed permissions to run on active tab