fix resource ids