Fixed the remote resource problem