Fixed loading resources in JWS