fix resource loading path.