fix resource tokens