fixed a filtering of resources when granting selecting