Fixed bug made while refactoring the resource ids