Fixed security permissions for sub categories, fixes #643