fix bug and allow to fetch ressources of block type