fixed a NPE in ResourceTracker