Fixed major bug in resource caching (used == instead of =)
Fixed bug in caching