fixes #2535
decrease queries
Merge pull request #2545 from digi604/fix-2535

fixes #2535 (dublicate apphook namespaces)