REmoving debugger call in resources controller