Fix
-Another bug with unloading resources