Fix Read File bugs in ResourceManagerImpl.java