Fixed a resource loading problem under Linux