fix resource call