Fixed bugs with the library/asset loading system.