Fixed two bugs add resource manger class(not implmented)