fix problems with gallery use from Omnirom