Change the order of endpoints. bugid:111790
Fix wrong cache. bugid:111790
Terminate process if no category. bugid:111790